// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#243b7e",
        "color": "#ffffff",
        "selectedColor": "#ffffff",
        "list": [{
            "pagePath": "/pages/v1index/index",
            "iconPath": "https://s2.ax1x.com/2019/12/27/lVIzjA.png",
            "selectedIconPath": "https://s2.ax1x.com/2019/12/27/lVopnI.png",
            "text": "首页"
          },
          {
            "pagePath": "/pages/orderInfo/orderInfo",
            "iconPath": "https://s2.ax1x.com/2019/07/26/enoCWR.png",
            "selectedIconPath": "https://s2.ax1x.com/2019/07/26/enoiS1.png",
            "text": "订单"
          },
          {
            "pagePath": "pages/me/me",
            "iconPath": "https://s2.ax1x.com/2019/07/26/enopFJ.png",
            "selectedIconPath": "https://s2.ax1x.com/2019/07/26/eno9Y9.png",
            "text": "我的"
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isIphoneX: app.globalData.systemInfo.screenHeight >= 812 ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // iPhone XR<iPhone11, 8>
    // iPhone X(GSM + CDMA)<iPhone10, 3>
    // iPhone X(GSM + CDMA)<iPhone10, 4>
    // iPhone X(GSM + CDMA)<iPhone10, 5>
  }
})